import { ProcessDrive } from "@lib/alen-helper/node/appAisle/drives/process.drive";
import { MainSDK } from "./sdk/main.sdk";
import { concatMap, map, timer } from "rxjs";

let d = new ProcessDrive(process);
let s = new MainSDK(d, {});
const fun = () => {
    s.window.build({
        width: 500,
        height: 300,
        file: '../html/test.html',
        show: false,
    })
        .pipe(concatMap(item => item.event('ready').pipe(concatMap(() => item.show())).pipe(map(() => item))))
        .subscribe(item => {
            //item.show()
        });
    s.application.event('destroy_all_window')
        .pipe(concatMap(() => s.application.close()))
        .subscribe(() => {
            //
        })

}
s.appReady()
    .subscribe(() => {
        fun();
    })
//console.log(ProcessDrive);
